package com.bskj.sj.service.impl;

import java.util.List;

import com.bskj.common.bean.model.BaseModel;
import com.bskj.sj.service.IBaseService;
import com.bskj.common.dao.core.FindRequestEntity;

/**
 * 
 * @author lishi
 * @date 2017-11-29 上午11:14:23
 * @param <T>
 */
public abstract class BaseServiceImpl<T extends BaseModel> implements
        IBaseService<T> {
	public void insert(T t) {
		getBaseDao().insert(t);
	}

	public int update(T t) {
		return getBaseDao().update(t);
	}

	@Override
	public List<T> find(FindRequestEntity param) {
		return getBaseDao().find(param);
	}

	@Override
	public T get(Integer id) {
		return getBaseDao().get(id);
	}

	@Override
	public int del(Integer id) {
		return getBaseDao().del(id);
	}
}
